package com.plug.entity;

import java.util.Date;

/**
 * 操作对比
 */
public class PlugContrast {
    private Long id;  //标识

    private String srcTab;  //源数据表

    private Long srcDsId; //源数据源标识

    private String tgtTab;  //目标数据表

    private Long tgtDsId;  //目标数据源标识

    private Date createtime;  //创建时间

    private String primaryKey;//备份主键列名称

    private String taskId;//任务ID

    private Integer timer;//任务执行间隔时间

    private String name;//任务名称

    private Integer status;//任务状态0为启动，1为暂停

    //srcDsName,tgtDsName属性用于存储展示
    private String srcDsName;//源数据库名

    private String tgtDsName;//备份数据库名

    private String sqlWhere;//备份添加条件

    public String getSqlWhere() {
        return sqlWhere;
    }

    public void setSqlWhere(String sqlWhere) {
        this.sqlWhere = sqlWhere;
    }

    public void setSrcDsName(String srcDsName) {
        this.srcDsName = srcDsName;
    }

    public void setTgtDsName(String tgtDsName) {
        this.tgtDsName = tgtDsName;
    }

    public String getSrcDsName() {
        return srcDsName;
    }

    public String getTgtDsName() {
        return tgtDsName;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public Integer getTimer() {
        return timer;
    }

    public void setTimer(Integer timer) {
        this.timer = timer;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSrcTab() {
        return srcTab;
    }

    public void setSrcTab(String srcTab) {
        this.srcTab = srcTab == null ? null : srcTab.trim();
    }

    public Long getSrcDsId() {
        return srcDsId;
    }

    public void setSrcDsId(Long srcDsId) {
        this.srcDsId = srcDsId;
    }

    public String getTgtTab() {
        return tgtTab;
    }

    public void setTgtTab(String tgtTab) {
        this.tgtTab = tgtTab == null ? null : tgtTab.trim();
    }

    public Long getTgtDsId() {
        return tgtDsId;
    }

    public void setTgtDsId(Long tgtDsId) {
        this.tgtDsId = tgtDsId;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "PlugContrast{" +
                "id=" + id +
                ", srcTab='" + srcTab + '\'' +
                ", srcDsId=" + srcDsId +
                ", tgtTab='" + tgtTab + '\'' +
                ", tgtDsId=" + tgtDsId +
                ", createtime=" + createtime +
                ", primaryKey='" + primaryKey + '\'' +
                ", taskId='" + taskId + '\'' +
                ", timer=" + timer +
                ", name='" + name + '\'' +
                ", status=" + status +
                ", srcDsName='" + srcDsName + '\'' +
                ", tgtDsName='" + tgtDsName + '\'' +
                '}';
    }
}